﻿using System;
using System.Collections.Generic;
using System.Text;
using CJJ_BlogApiV3.Model.Common;
using CJJ_BlogApiV3.Model.DbBaseModel;

namespace CJJ_BlogApiV3.Model.ReuqestModel
{
    /// <summary>
    /// 列表查询
    /// </summary>
    public class BlogListViewModel : PageQuery
    {
        /// <summary>
        /// 分类id
        /// </summary>
        public int CategoryID { get; set; }
    }
    /// <summary>
    /// 详情查询
    /// </summary>
    public class BlogDetailRequest
    {
        /// <summary>
        /// 编号
        /// </summary>
        public string BlogNumber { get; set; }
        /// <summary>
        /// 会员id
        /// </summary>
        public int? MemberId { get; set; }
        /// <summary>
        /// 文章类别（确定上下篇）
        /// </summary>
        public int? CategoryId { get; set; }
    }
    /// <summary>
    /// 文章点赞
    /// </summary>
    public class ArticePriseRequest
    {
        /// <summary>
        /// 编号
        /// </summary>
        public string BlogNumber { get; set; }
        /// <summary>
        /// 会员id
        /// </summary>
        public int MemberId { get; set; }
        /// <summary>
        /// 点赞ip地址
        /// </summary>
        public string IpAddress { get; set; }
    }
    /// <summary>
    /// 查询是否点赞
    /// </summary>
    public class QueryPriseRequest
    {
        public int Memberid { get; set; }
        public string BlogNum { get; set; }
    }
    /// <summary>
    ///  点赞数、评论数、点击数、是否点赞
    /// </summary>
    public class QueryPriseResponse
    {
        /// <summary>
        /// 是否点赞
        /// </summary>
        public bool IsPraise { get; set; }
        /// <summary>
        /// 评论数
        /// </summary>
        public int Comments { get; set; }
        /// <summary>
        /// 点赞数
        /// </summary>
        public int Starts { get; set; }
        /// <summary>
        /// 浏览记录数
        /// </summary>
        public int Views { get; set; }
    }
    /// <summary>
    /// 评论分页查询
    /// </summary>
    public class CommentPageQuery : PageQuery
    {
        /// <summary>
        /// 编号
        /// </summary>
        public string BlogNum { get; set; }
    }

    /// <summary>
    /// 添加博客
    /// </summary>
    public class AddCommentRequest
    {
        public string BlogNum { get; set; }
        public int ToMemberid { get; set; }
        public int MemberId { get; set; }
        public string Content { get; set; }
        public string Commentid { get; set; }
    }
    /// <summary>
    /// 查询上下篇
    /// </summary>
    public class PrenexNextQuery
    {
        public int BlogType { get; set; }
        public string BlogNum { get; set; }
    }

    /// <summary>
    /// 会员登录
    /// </summary>
    public class MemberLogin
    {
        public string UserPassword { get; set; }
        public string UserAccount { get; set; }
    }
    /// <summary>
    /// 登录结果
    /// </summary>
    public class MemberLoginResponse
    {
        public bool IsSuccess { get; set; }
        /// <summary>
        /// 登录token
        /// </summary>
        public string Token { get; set; }
        /// <summary>
        /// 会员信息
        /// </summary>

        public Member MemberInfo { get; set; }

    }

    /// <summary>
    /// 更新会员
    /// </summary>
    public class UpdateModelRequest
    {
        public string UserAccount { get; set; }
        public string UserName { get; set; }
        public string UserIcon { get; set; }
    }
    /// <summary>
    /// 会员注册
    /// </summary>
    public class MemberRegisterRequest
    {
        public string UserAccount { get; set; }
        public string UserName { get; set; }
        public string UserIcon { get; set; }
        public string Qrcode { get; set; }
        public string Qrcodekey { get; set; }
        public string UserPassword { get; set; }
    }
}
